package pers.baiban.sqltoword.constant;

import cn.hutool.core.collection.ListUtil;
import pers.baiban.sqltoword.vo.ColumnVO;

import java.util.List;

/**
 * @author 强子初
 * @since 2023/12/4
 */
public class TableConstant {

    /**
     * 默认表头列
     */
    public static final List<String> DEFAULT_TABLE_HEADER = ListUtil.of("序号", "列名", "数据类型", "索引", "允许空", "默认值", "列说明");

    /**
     * 默认表头宽度
     */
    public static final List<String> DEFAULT_TABLE_HEADER_WIDTH = ListUtil.of("8%", "20%", "15%", "10%", "10%", "20%", "auto");

    /**
     * 默认展示行和行顺序
     */
    public static final List<String> DEFAULT_TABLE_COLUMN = ListUtil.of(
            ColumnVO.Fields.number,
            ColumnVO.Fields.columnName,
            ColumnVO.Fields.columnType,
            ColumnVO.Fields.columnKey,
            ColumnVO.Fields.isNullable,
            ColumnVO.Fields.columnDefault,
            ColumnVO.Fields.columnComment
    );
}
